home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech's Sprocket™ / Sprocket (original from 1994) / Sprocket / Interfaces / AppleEventHandling.h next >
Encoding:
C/C++ Source or Header  |  1994-11-23  |  2.1 KB  |  66 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        AppleEventHandling.h
  3.  
  4.     Contains:    Minimalist support for the required and Display Manager suites
  5.                 To really support AppleScript™, we’ll do more work in here.
  6.  
  7.     Written by: Dave Falkenburg
  8.  
  9.     Copyright:    © 1993-1994 by Dave Falkenburg, all rights reserved.
  10.  
  11.     Change History (most recent first):     
  12.  
  13.          <6>    11/23/94    DRF        InstallAppleEventHandlers is now called InitAppleEventRoutines.
  14.                                     Also added a useful global: gThisProcessDesc for self targetting
  15.                                     of AppleEvents.
  16.          <5>    11/16/94    DRF        Add StandardAEIdleProc for people who like using AESend with
  17.                                     kAEWaitReply.
  18.          <4>    11/12/94    DRF        AppConditionals.h -> BuildConditionals.h
  19.          <2>      9/4/94    DRF        Added Text Services AppleEvent handlers.
  20.  */
  21.  
  22. #ifndef        _APPLEEVENTHANDLING_
  23. #define        _APPLEEVENTHANDLING_
  24.  
  25. #ifndef        __APPLEEVENTS__
  26. #include    <AppleEvents.h>
  27. #endif
  28.  
  29. #ifndef        __OCESTANDARDMAIL__
  30. #include    <OCEStandardMail.h>
  31. #endif
  32.  
  33.  
  34. void                InitAppleEventRoutines(void);
  35. OSErr                CheckAppleEventForMissingParams(AppleEvent * theAppleEvent);
  36. extern AEIdleUPP    StandardAEIdleUPP;
  37. extern AEDesc        gThisProcessDesc;
  38.  
  39. //    Handlers for the Required Suite:
  40.  
  41. typedef OSErr        (*EachDocumentProcPtr)(LetterDescriptor *aFile,void * param);
  42. OSErr                ForEachDocumentInList(AEDescList documentList,EachDocumentProcPtr documentProc,void * documentParam);
  43.  
  44. pascal OSErr        HandleOpenApplication(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  45. pascal OSErr        HandleOpenDocuments(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  46. pascal OSErr        HandlePrintDocuments(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  47. pascal OSErr        HandleQuitApplication(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  48.  
  49.  
  50. //    Display Manager:
  51.  
  52. pascal OSErr    HandleSystemConfigNotice(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  53.  
  54.  
  55. #if    qInlineInputAware
  56.  
  57. //    Text Services Manager:
  58.  
  59. pascal OSErr    HandleTextServicesUpdateActiveInputArea(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  60. pascal OSErr    HandleTextServicesPos2Offset(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  61. pascal OSErr    HandleTextServicesOffset2Pos(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  62.  
  63. #endif
  64.  
  65. #endif
  66.